Present

data class Present(val animated: Boolean = true, val presentationStyle: UIModalPresentationStyle = UIModalPresentationAutomatic, val transitionStyle: UIModalTransitionStyle = UIModalTransitionStyleCoverVertical, val present: () -> UIViewController, val completion: () -> Unit? = null) : NavigationSpec

Lets the parent present a UIViewController using UIViewController.presentViewController.

Parameters

animated

Specifies whether transition should be animated

presentationStyle

The UIModalPresentationStyle to present the viewcontroller in. Defaults to UIModalPresentationAutomatic

transitionStyle

The UIModalTransitionStyle to transition to. Defaults to UIModalTransitionStyleCoverVertical

present

Function to create the UIViewController to present

completion

Optional function to call when presentation has completed

Constructors

Link copied to clipboard
constructor(animated: Boolean = true, presentationStyle: UIModalPresentationStyle = UIModalPresentationAutomatic, transitionStyle: UIModalTransitionStyle = UIModalTransitionStyleCoverVertical, present: () -> UIViewController, completion: () -> Unit? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val completion: () -> Unit?
Link copied to clipboard
val present: () -> UIViewController
Link copied to clipboard
val presentationStyle: UIModalPresentationStyle
Link copied to clipboard
val transitionStyle: UIModalTransitionStyle